package test.y2019.november;

import cn.hutool.core.lang.Console;
import common.base.BaseService;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2019/11/22 13:40
 */
public class November6 extends BaseService {
    public static void main(String[] args) {
        final Boolean first = first();
        Console.error(first);
        executorService.execute(November6::second);
        Console.error(third());
    }

    private static Boolean first() {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Console.error("===========>>>>>   first");
        return true;
    }

    private static void second() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Console.error("===========>>>>>   Second");
    }

    private static String third() {
        return "*******************";
    }

}
